home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
mxcode
/
jmp
/
modplay.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-29
|
790b
|
46 lines
extern int modload(char * filename);
extern int modinit(int frequency);
extern int modplay(void);
extern int modpoll(void);
extern int modstop(void);
typedef unsigned char uchar;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef struct {
uchar name[22];
uint length;
uchar finetune;
uchar volume;
uint reppnt;
uint replen;
} sample;
typedef struct {
uchar sampperiod;
uchar period;
uchar sampeffect;
uchar effect;
} note;
typedef struct {
uchar title[20];
sample samples[31];
uchar length;
uchar protracker;
uchar patterntable[128];
uchar signature[4];
} module;
typedef struct {
uchar * sampdata;
uint sampnum;
uint length;
uint reppnt;
uint replen;
uint period;
uchar volume;
ulong ticks;
} channel;